A* path planner for grid map 您所在的位置:网站首页 matlab grid用法 A* path planner for grid map

A* path planner for grid map

#A* path planner for grid map| 来源: 网络整理| 查看: 265

Open Live Script

Plan the shortest collision-free path through an obstacle grid map using the A* path planning algorithm.

Generate a binaryOccupancyMap object with randomly scattered obstacles using the mapClutter function.

rng('default'); map = mapClutter;

Use the map to create a plannerAStarGrid object.

planner = plannerAStarGrid(map);

Define the start and goal points.

start = [2 3]; goal = [248 248];

Plan a path from the start point to the goal point.

plan(planner,start,goal);

Visualize the path and the explored nodes using the show object function.

show(planner)



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有